<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>{$tpshop_config['shop_info_store_title']}</title>
	<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
	<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
	<script src="__PUBLIC__/js/jquery-1.8.2.min.js"></script>
	<script src="__PUBLIC__/js/global.js"></script>
	<script src="__PUBLIC__/js/pc_common.js"></script>
	<script src="__PUBLIC__/js/layer/layer.js"></script>

</head>

<body>
<include file="Public/header" />

<div class="breadcrumb-area">
	<div class="layout">

		<img src="__STATIC__/images/cart_btn.jpg" >{$Think.lang.mycart}

	</div>
</div>
<link rel="stylesheet" href="__STATIC__/css/cart.css" type="text/css">
<div class="layout after-ta order-ha">
	<div class="erhuh">
		<i class="icon-succ"></i>
		<h3>订单提交成功，请您尽快付款！</h3>

		<php>if($type=='recharge'){</php>
		<p class="succ-p">订单号 ：&nbsp;&nbsp;{$order['order_sn']} </p>
		<p class="succ-p">订单类型 ：&nbsp;&nbsp;<span>充值</span> </p>

		<p class="succ-p">充值金额 ：&nbsp;&nbsp;<b>{$order['account']}</b>&nbsp;<b>元</b></p>
		<php>}else{</php>
		<p class="succ-p">订单号 ：&nbsp;&nbsp;{$order['order_sn']} </p>
		<p class="succ-p">店铺价格 ：&nbsp;&nbsp;<span>{$order['price']}</span>&nbsp;<span>元</span></p>
		<p class="succ-p">保证金 ：&nbsp;&nbsp;<span>{$order['b_price']}</span>&nbsp;<span>元</span></p>
		<p class="succ-p">技术年费 ：&nbsp;&nbsp;<span>{$order['j_price']}</span>&nbsp;<span>元</span></p>
		<p class="succ-p">手续费 ：&nbsp;&nbsp;<span>{$order['s_price']}</span>&nbsp;<span>元</span></p>
		<p class="succ-p">总价 ：&nbsp;&nbsp;<b>{$order['total_amount']}</b>&nbsp;<b>元</b></p>
		<p class="succ-p">当前应付款 ：&nbsp;&nbsp;<b>{$order['pay_price']}</b>&nbsp;<b>元</b></p>
		<php>}</php>

	</div>
	<!--<div class="ddxq-xiaq">
		<if condition="$order['user_id'] eq ''" >
			<a href="{:U('Home/Cart/order_detail',array('id'=>$order['order_id']))}">
				{$Think.lang.order_details}
				<i></i>
			</a>
			<else />
			<a href="{:U('Home/User/order_detail',array('id'=>$order['order_id']))}">
				{$Think.lang.order_details}
				<i></i>
			</a>

		</if>
	</div>-->
	<form action="{:U('Home/Payment/getCode')}" method="post" name="cart4_form" id="cart4_form">
		<div class="orde-sjyy">
			<h3 class="titls">选择支付方式 </h3>
			<div class="bsjy-g">
				<dl>
					<dd>

						<div class="order-payment-area">
							<div class="dsfzfpte">
								<b>支付方式</b>
							</div>
							<div class="po-re dsfzf-ee">
								<ul>
									<foreach name="paymentList" item="v"  key="k">
										<li>
											<div class="payment-area">
												<input type="radio" id="input-ALIPAY-1" value="pay_code={$v['code']}" class="radio vam" name="pay_radio" >
												<label for="">
													<img src="/plugins/{$v['type']}/{$v['code']}/{$v['icon']}" width="120" height="40" onClick="change_pay(this);" />
												</label>
											</div>
										</li>
									</foreach>
								</ul>
							</div>
						</div>

						<!--第三方网银支付 start-->
						<foreach name="bankCodeList" item="v"  key="k">
							<div class="order-payment-area" style="display:none;">
								<div class="dsfzfpte">
									<b>{$paymentList[$k]['name']}</b>
									<em>网银支付</em>
								</div>
								<div class="po-re dsfzf-ee">
									<ul>
										<foreach name="v" item="v2"  key="k2">
											<li>
												<div class="payment-area">
													<input type="radio" name="pay_radio" class="radio vam" value="pay_code={$k}&bank_code={$v2}" id="input-ALIPAY-1">
													<label for="">
														<img src="__STATIC__/images/images-out/{$bank_img[$k2]}" width="120" height="40" onClick="change_pay(this);"/>
													</label>
												</div>
											</li>
										</foreach>
									</ul>
								</div>
							</div>
						</foreach>
						<!--第三方网银支付 end -->

					</dd>
				</dl>
				<div class="order-payment-action-area">
					<a class="button-style-5 button-confirm-payment" href="javascript:void(0);" onClick="$('#cart4_form').submit();" >确认支付方式</a>
				</div>
			</div>
		</div>
		<input type="hidden" name="order_id" value="{$order['order_id']}" />
	</form>
</div>
<script>
    $(document).ready(function(){
        $("input[name='pay_radio']").first().trigger('click');
    });
    // 切换支付方式
    function change_pay(obj)
    {
        $(obj).parent().siblings('input[name="pay_radio"]').trigger('click');
    }
</script>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->
</body>
</html>
